package org.xuk.spring.ws.model;

import java.security.Principal;

/**
 * 用户身份
 */
public class UserSessionPrincipal implements Principal {
    private final UserSession userSession;

    public UserSessionPrincipal(UserSession userSession) {
        this.userSession = userSession;
    }

    @Override
    public String getName() {
        return userSession.getUserId();
    }
}
